package com.appkubes.mall.admin.application.system.config.controller;


import com.appkubes.cloud.config.params.paramValid.ParamValid;
import com.appkubes.common.Response;
import com.appkubes.mall.admin.application.base.BaseController;
import com.appkubes.mall.admin.application.system.config.entity.vo.SaveConfigsVO;
import com.appkubes.mall.admin.application.system.config.service.ConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api("系统配置模块")
@RestController
@RequestMapping("/system/config")
public class ConfigController extends BaseController {

    @Resource
    ConfigService configService;

    @ApiOperation("获取配置")
    @GetMapping("/getConfig")
    public Response getConfig() {
        return Response.success();
    }

    @ApiOperation("删除配置")
    @PostMapping("/del")
    public Response del() {
        return Response.success();
    }

    @ApiOperation("保存配置")
    @PostMapping("/saveConfigs")
    public Response saveConfigs(@RequestBody @ParamValid SaveConfigsVO saveConfigsVO) {
        return Response.success();
    }

}